  <p>
    <%= f.label :body %><br />
    <%= f.text_area :body %>
  </p>

  <% 1.upto(4) do |i| %>
  <p>

    <label for="choice<%= i %>">Choice <%= i %></label><br />

    <input id="choice<%= i %>" name="question[choices][]" size="30" type="text" value="<%= @question.choices[i - 1] %>" />

    <input id="correct_choice<%= i %>" name="question[correct_choices][]" type="checkbox"
        value="<%= i - 1 %>" <%= 'checked="true"' if @question.correct_choices.include? ((i-1).to_s) %> />

  </p>
  <% end %>